import ajax from '@/api/apiConfig.js'

/* 初始化用户单位 */
export const initUserOrgInfo = (data) => {
  return ajax.get('user/initUserOrgInfo', data)
}

/* 获取组织平台 */
export const getUcOrgTree = (data) => {
  return ajax.get('user/getUcOrgTree', data)
}

/* 获取组织平台 */
export const getOrgAuthUserList = (data) => {
  return ajax.get('user/getOrgAuthUserList', data)
}

/* 移除用户某业主单位权限 */
export const detachUserOrgId = (data) => {
  return ajax.get('user/detachUserOrgId', data)
}

/* 获取指定单位权限的用户列表 */
export const getHaveOrgUserList = (data) => {
  return ajax.get('user/getHaveOrgUserList', data)
}

/* 获取出事密码 */
export const getDefaultPassword = (data) => {
  return ajax.get('user/getDefaultPassword', data)
}

/* 获取单位下用户 */
export const getUnitUserList = (data) => {
  return ajax.get('user/getUnitUserList', data)
}

/* 获取值班人员接口 */
export const getOrgUserList = (data) => {
  return ajax.get('user/getOrgUserList', data)
}

/* 初始化--删除 */
export const delOrg = (data) => {
  return ajax.get('user/delOrg', data)
}
